//
//  APView_Height_Protocol.swift
//  APSwift
//
//  Created by jianbo.pei on 2023/4/27.
//

import Foundation

protocol APView_Height_Protocol {
    /// 根据model动态获取view的高度
    /// - Parameter model: 数据源
    /// - Returns: view的高度
    static func viewHeight(with model: Any?) -> CGFloat
}

extension APView_Height_Protocol {
    static func viewHeight(with model: Any?) -> CGFloat {
        return 0
    }
}

//
//protocol VMViewHeightCacheProtocol {
//    var viewHeight: CGFloat { get set }
//}
